package tgc.edu.exam.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.exam.custom.CommonService;
import tgc.edu.exam.entity.Permission;
import tgc.edu.exam.repository.PermissionRepository;

@Service
public class PermissionService extends CommonService<Permission, Integer>{

	@Autowired
	private PermissionRepository dao;
	public Permission findByCode(String pCode) {
		
		return dao.findByCode(pCode);
	}

}
